package com.person.mengshuai.mytestdemo.controller;


import com.person.mengshuai.mytestdemo.domain.response.Result;
import com.person.mengshuai.mytestdemo.entity.BDataLog;
import com.person.mengshuai.mytestdemo.service.BDataLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ms
 * @since 2024-08-07
 */
@RestController
@RequestMapping("/elk")
@Slf4j
public class ElkLogController {
    @Autowired
    private BDataLogService logService;

    @GetMapping("/test")
    public Result test(@RequestParam String msg){
        log.warn(msg);
        return Result.success(msg);
    }
}
